Optimal. Leaf size=345 \[ \frac {2 a f x \sqrt {a+b x^4}}{5 \sqrt {b} \left (\sqrt {a}+\sqrt {b} x^2\right )}+\frac {1}{4} \left (2 c+e x^2\right ) \sqrt {a+b x^4}+\frac {1}{15} x \left (5 d+3 f x^2\right ) \sqrt {a+b x^4}+\frac {a e \tanh ^{-1}\left (\frac {\sqrt {b} x^2}{\sqrt {a+b x^4}}\right )}{4 \sqrt {b}}-\frac {1}{2} \sqrt {a} c \tanh ^{-1}\left (\frac {\sqrt {a+b x^4}}{\sqrt {a}}\right )-\frac {2 a^{5/4} f \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{5 b^{3/4} \sqrt {a+b x^4}}+\frac {a^{3/4} \left (5 \sqrt {b} d+3 \sqrt {a} f\right ) \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{15 b^{3/4} \sqrt {a+b x^4}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 345, normalized size of antiderivative = 1.00, number of steps
used = 14, number of rules used = 13, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.433, Rules used = {1847, 1266,
829, 858, 223, 212, 272, 65, 214, 1191, 1212, 226, 1210} \begin {gather*} \frac {a^{3/4} \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} \left (3 \sqrt {a} f+5 \sqrt {b} d\right ) F\left (2 \text {ArcTan}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{15 b^{3/4} \sqrt {a+b x^4}}-\frac {2 a^{5/4} f \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} E\left (2 \text {ArcTan}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{5 b^{3/4} \sqrt {a+b x^4}}+\frac {1}{4} \sqrt {a+b x^4} \left (2 c+e x^2\right )-\frac {1}{2} \sqrt {a} c \tanh ^{-1}\left (\frac {\sqrt {a+b x^4}}{\sqrt {a}}\right )+\frac {1}{15} x \sqrt {a+b x^4} \left (5 d+3 f x^2\right )+\frac {a e \tanh ^{-1}\left (\frac {\sqrt {b} x^2}{\sqrt {a+b x^4}}\right )}{4 \sqrt {b}}+\frac {2 a f x \sqrt {a+b x^4}}{5 \sqrt {b} \left (\sqrt {a}+\sqrt {b} x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 212
Rule 214
Rule 223
Rule 226
Rule 272
Rule 829
Rule 858
Rule 1191
Rule 1210
Rule 1212
Rule 1266
Rule 1847
Rubi steps
\begin {align*} \int \frac {\left (c+d x+e x^2+f x^3\right ) \sqrt {a+b x^4}}{x} \, dx &=\int \left (\frac {\left (c+e x^2\right ) \sqrt {a+b x^4}}{x}+\left (d+f x^2\right ) \sqrt {a+b x^4}\right ) \, dx\\ &=\int \frac {\left (c+e x^2\right ) \sqrt {a+b x^4}}{x} \, dx+\int \left (d+f x^2\right ) \sqrt {a+b x^4} \, dx\\ &=\frac {1}{15} x \left (5 d+3 f x^2\right ) \sqrt {a+b x^4}+\frac {1}{15} \int \frac {10 a d+6 a f x^2}{\sqrt {a+b x^4}} \, dx+\frac {1}{2} \text {Subst}\left (\int \frac {(c+e x) \sqrt {a+b x^2}}{x} \, dx,x,x^2\right )\\ &=\frac {1}{4} \left (2 c+e x^2\right ) \sqrt {a+b x^4}+\frac {1}{15} x \left (5 d+3 f x^2\right ) \sqrt {a+b x^4}+\frac {\text {Subst}\left (\int \frac {2 a b c+a b e x}{x \sqrt {a+b x^2}} \, dx,x,x^2\right )}{4 b}-\frac {\left (2 a^{3/2} f\right ) \int \frac {1-\frac {\sqrt {b} x^2}{\sqrt {a}}}{\sqrt {a+b x^4}} \, dx}{5 \sqrt {b}}+\frac {1}{15} \left (2 a \left (5 d+\frac {3 \sqrt {a} f}{\sqrt {b}}\right )\right ) \int \frac {1}{\sqrt {a+b x^4}} \, dx\\ &=\frac {2 a f x \sqrt {a+b x^4}}{5 \sqrt {b} \left (\sqrt {a}+\sqrt {b} x^2\right )}+\frac {1}{4} \left (2 c+e x^2\right ) \sqrt {a+b x^4}+\frac {1}{15} x \left (5 d+3 f x^2\right ) \sqrt {a+b x^4}-\frac {2 a^{5/4} f \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{5 b^{3/4} \sqrt {a+b x^4}}+\frac {a^{3/4} \left (5 \sqrt {b} d+3 \sqrt {a} f\right ) \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{15 b^{3/4} \sqrt {a+b x^4}}+\frac {1}{2} (a c) \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x^2}} \, dx,x,x^2\right )+\frac {1}{4} (a e) \text {Subst}\left (\int \frac {1}{\sqrt {a+b x^2}} \, dx,x,x^2\right )\\ &=\frac {2 a f x \sqrt {a+b x^4}}{5 \sqrt {b} \left (\sqrt {a}+\sqrt {b} x^2\right )}+\frac {1}{4} \left (2 c+e x^2\right ) \sqrt {a+b x^4}+\frac {1}{15} x \left (5 d+3 f x^2\right ) \sqrt {a+b x^4}-\frac {2 a^{5/4} f \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{5 b^{3/4} \sqrt {a+b x^4}}+\frac {a^{3/4} \left (5 \sqrt {b} d+3 \sqrt {a} f\right ) \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{15 b^{3/4} \sqrt {a+b x^4}}+\frac {1}{4} (a c) \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,x^4\right )+\frac {1}{4} (a e) \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {x^2}{\sqrt {a+b x^4}}\right )\\ &=\frac {2 a f x \sqrt {a+b x^4}}{5 \sqrt {b} \left (\sqrt {a}+\sqrt {b} x^2\right )}+\frac {1}{4} \left (2 c+e x^2\right ) \sqrt {a+b x^4}+\frac {1}{15} x \left (5 d+3 f x^2\right ) \sqrt {a+b x^4}+\frac {a e \tanh ^{-1}\left (\frac {\sqrt {b} x^2}{\sqrt {a+b x^4}}\right )}{4 \sqrt {b}}-\frac {2 a^{5/4} f \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{5 b^{3/4} \sqrt {a+b x^4}}+\frac {a^{3/4} \left (5 \sqrt {b} d+3 \sqrt {a} f\right ) \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{15 b^{3/4} \sqrt {a+b x^4}}+\frac {(a c) \text {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b x^4}\right )}{2 b}\\ &=\frac {2 a f x \sqrt {a+b x^4}}{5 \sqrt {b} \left (\sqrt {a}+\sqrt {b} x^2\right )}+\frac {1}{4} \left (2 c+e x^2\right ) \sqrt {a+b x^4}+\frac {1}{15} x \left (5 d+3 f x^2\right ) \sqrt {a+b x^4}+\frac {a e \tanh ^{-1}\left (\frac {\sqrt {b} x^2}{\sqrt {a+b x^4}}\right )}{4 \sqrt {b}}-\frac {1}{2} \sqrt {a} c \tanh ^{-1}\left (\frac {\sqrt {a+b x^4}}{\sqrt {a}}\right )-\frac {2 a^{5/4} f \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{5 b^{3/4} \sqrt {a+b x^4}}+\frac {a^{3/4} \left (5 \sqrt {b} d+3 \sqrt {a} f\right ) \left (\sqrt {a}+\sqrt {b} x^2\right ) \sqrt {\frac {a+b x^4}{\left (\sqrt {a}+\sqrt {b} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{b} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{15 b^{3/4} \sqrt {a+b x^4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 10.85, size = 280, normalized size = 0.81 \begin {gather*} \frac {\sqrt {\frac {i \sqrt {b}}{\sqrt {a}}} \left (15 a e \sqrt {a+b x^4} \tanh ^{-1}\left (\frac {\sqrt {b} x^2}{\sqrt {a+b x^4}}\right )+\sqrt {b} \left (\left (a+b x^4\right ) (30 c+x (20 d+3 x (5 e+4 f x)))-30 \sqrt {a} c \sqrt {a+b x^4} \tanh ^{-1}\left (\frac {\sqrt {a+b x^4}}{\sqrt {a}}\right )\right )\right )+24 a^{3/2} f \sqrt {1+\frac {b x^4}{a}} E\left (\left .i \sinh ^{-1}\left (\sqrt {\frac {i \sqrt {b}}{\sqrt {a}}} x\right )\right |-1\right )-8 a \left (5 i \sqrt {b} d+3 \sqrt {a} f\right ) \sqrt {1+\frac {b x^4}{a}} F\left (\left .i \sinh ^{-1}\left (\sqrt {\frac {i \sqrt {b}}{\sqrt {a}}} x\right )\right |-1\right )}{60 \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}} \sqrt {b} \sqrt {a+b x^4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.34, size = 284, normalized size = 0.82
method | result | size |
elliptic | \(\frac {f \,x^{3} \sqrt {b \,x^{4}+a}}{5}+\frac {e \,x^{2} \sqrt {b \,x^{4}+a}}{4}+\frac {d x \sqrt {b \,x^{4}+a}}{3}+\frac {c \sqrt {b \,x^{4}+a}}{2}+\frac {2 a d \sqrt {1-\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \EllipticF \left (x \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, i\right )}{3 \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}\, \sqrt {b \,x^{4}+a}}+\frac {a e \ln \left (2 x^{2} \sqrt {b}+2 \sqrt {b \,x^{4}+a}\right )}{4 \sqrt {b}}+\frac {2 i a^{\frac {3}{2}} f \sqrt {1-\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \left (\EllipticF \left (x \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, i\right )-\EllipticE \left (x \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, i\right )\right )}{5 \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}\, \sqrt {b \,x^{4}+a}\, \sqrt {b}}-\frac {\sqrt {a}\, c \arctanh \left (\frac {\sqrt {a}}{\sqrt {b \,x^{4}+a}}\right )}{2}\) | \(274\) |
default | \(f \left (\frac {x^{3} \sqrt {b \,x^{4}+a}}{5}+\frac {2 i a^{\frac {3}{2}} \sqrt {1-\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \left (\EllipticF \left (x \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, i\right )-\EllipticE \left (x \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, i\right )\right )}{5 \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}\, \sqrt {b \,x^{4}+a}\, \sqrt {b}}\right )+e \left (\frac {x^{2} \sqrt {b \,x^{4}+a}}{4}+\frac {a \ln \left (x^{2} \sqrt {b}+\sqrt {b \,x^{4}+a}\right )}{4 \sqrt {b}}\right )+d \left (\frac {x \sqrt {b \,x^{4}+a}}{3}+\frac {2 a \sqrt {1-\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {b}\, x^{2}}{\sqrt {a}}}\, \EllipticF \left (x \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, i\right )}{3 \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}\, \sqrt {b \,x^{4}+a}}\right )+c \left (\frac {\sqrt {b \,x^{4}+a}}{2}-\frac {\sqrt {a}\, \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {b \,x^{4}+a}}{x^{2}}\right )}{2}\right )\) | \(284\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.25, size = 30, normalized size = 0.09 \begin {gather*} {\rm integral}\left (\frac {\sqrt {b x^{4} + a} {\left (f x^{3} + e x^{2} + d x + c\right )}}{x}, x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 4.59, size = 204, normalized size = 0.59 \begin {gather*} - \frac {\sqrt {a} c \operatorname {asinh}{\left (\frac {\sqrt {a}}{\sqrt {b} x^{2}} \right )}}{2} + \frac {\sqrt {a} d x \Gamma \left (\frac {1}{4}\right ) {{}_{2}F_{1}\left (\begin {matrix} - \frac {1}{2}, \frac {1}{4} \\ \frac {5}{4} \end {matrix}\middle | {\frac {b x^{4} e^{i \pi }}{a}} \right )}}{4 \Gamma \left (\frac {5}{4}\right )} + \frac {\sqrt {a} e x^{2} \sqrt {1 + \frac {b x^{4}}{a}}}{4} + \frac {\sqrt {a} f x^{3} \Gamma \left (\frac {3}{4}\right ) {{}_{2}F_{1}\left (\begin {matrix} - \frac {1}{2}, \frac {3}{4} \\ \frac {7}{4} \end {matrix}\middle | {\frac {b x^{4} e^{i \pi }}{a}} \right )}}{4 \Gamma \left (\frac {7}{4}\right )} + \frac {a c}{2 \sqrt {b} x^{2} \sqrt {\frac {a}{b x^{4}} + 1}} + \frac {a e \operatorname {asinh}{\left (\frac {\sqrt {b} x^{2}}{\sqrt {a}} \right )}}{4 \sqrt {b}} + \frac {\sqrt {b} c x^{2}}{2 \sqrt {\frac {a}{b x^{4}} + 1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\sqrt {b\,x^4+a}\,\left (f\,x^3+e\,x^2+d\,x+c\right )}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________